package com.kungfuhacking.wristbandpro.chat.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kungfuhacking.wristbandpro.base.bean.Basebean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Aaron on 17/7/12.
 */

public class UserListBean extends Basebean implements Parcelable {

    private List<UserListEntity> userList;

    public List<UserListEntity> getUserList() {
        return userList;
    }

    public void setUserList(List<UserListEntity> userList) {
        this.userList = userList;
    }

    public static class UserListEntity {
        private String nickName;
        private String imgUrl;
        private String phoneNum;
        private String isAdmin;

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }

        public String getIsAdmin() {
            return isAdmin;
        }

        public void setIsAdmin(String isAdmin) {
            this.isAdmin = isAdmin;
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.userList);
    }

    public UserListBean() {
    }

    protected UserListBean(Parcel in) {
        this.userList = new ArrayList<UserListEntity>();
        in.readList(this.userList, UserListEntity.class.getClassLoader());
    }

    public static final Parcelable.Creator<UserListBean> CREATOR = new Parcelable.Creator<UserListBean>() {
        @Override
        public UserListBean createFromParcel(Parcel source) {
            return new UserListBean(source);
        }

        @Override
        public UserListBean[] newArray(int size) {
            return new UserListBean[size];
        }
    };
}
